package com.crk.shixiguanli.service;

import com.crk.shixiguanli.entity.Plan;
import com.crk.shixiguanli.entity.Task;
import com.crk.shixiguanli.util.Page;
import com.crk.shixiguanli.util.ResponseResult;

/**
 * @author
 * @description:
 * @date 2020/4/27
 */
public interface TaskService {
    /**
     * 分页查询
     * @param page
     * @return
     */
    public ResponseResult queryPage(Page page);


    public ResponseResult queryTaskComplete(String taskName,String status,String studentName,Page page);



    /**
     * 查询所有
     * @return
     */
    public ResponseResult queryAll();

    /**
     * 查询单个
     * @param id
     * @return
     */
    public ResponseResult getOne(Integer id);

    public ResponseResult getTaskComplete(Integer id);

    /**
     * 保存数据
     * @param task
     * @return
     */
    public ResponseResult save(Task task);

    /**
     * 删除
     * @param id
     * @return
     */
    public ResponseResult delete(Integer id);


    ResponseResult getMyTask(String status,Page page);


    ResponseResult completeTask(Integer id,String completeDesc);


    ResponseResult evaluate(Integer id,String evaluate,String score);
}
